import request from '@/utils/request'

// 查询sw产品分类列表
export function listSwProCategory(query) {
  return request({
    url: '/swProCategory/swProCategory/list',
    method: 'get',
    params: query
  })
}

// 查询sw产品分类详细
export function getSwProCategory(id) {
  return request({
    url: '/swProCategory/swProCategory/' + id,
    method: 'get'
  })
}

// 新增sw产品分类
export function addSwProCategory(data) {
  return request({
    url: '/swProCategory/swProCategory',
    method: 'post',
    data: data
  })
}

// 修改sw产品分类
export function updateSwProCategory(data) {
  return request({
    url: '/swProCategory/swProCategory',
    method: 'put',
    data: data
  })
}

// 删除sw产品分类
export function delSwProCategory(id) {
  return request({
    url: '/swProCategory/swProCategory/' + id,
    method: 'delete'
  })
}
